Skip to content

Conversation

@martincostello
Copy link
Owner

Set workflow permissions to none and add job-level permissions instead.

Set workflow permissions to none and add job-level permissions instead.
Copilot AI review requested due to automatic review settings August 15, 2025 16:06
@martincostello martincostello added enhancement New feature or request github_actions Pull requests that update GitHub Actions code labels Aug 15, 2025
@martincostello martincostello enabled auto-merge (rebase) August 15, 2025 16:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Updates GitHub workflow permissions to follow the principle of least privilege by setting workflow-level permissions to none and explicitly defining job-level permissions instead.

  • Replaces workflow-level contents: read permissions with empty permissions object
  • Adds explicit contents: read permissions at the job level for each workflow
  • Applies consistent permission structure across lint, build, and benchmark workflows

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/lint.yml Moves contents read permission from workflow to job level
.github/workflows/build.yml Moves contents read permission from workflow to job level
.github/workflows/benchmark.yml Moves contents read permission from workflow to job level

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@martincostello martincostello merged commit ca0f188 into main Aug 15, 2025
9 checks passed
@martincostello martincostello deleted the update-permissions branch August 15, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants